/*
 * @Author: 我想吃余 483766615@qq.com
 * @Date: 2025-10-18 14:03:23
 * @LastEditors: 我想吃余 483766615@qq.com
 * @LastEditTime: 2025-10-18 20:57:37
 * @FilePath: /code/oscode/pipe use/task.hpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once

#include <cstdio>
#include <vector>

typedef void(*task_t)();

void task1()
{
    printf("执行成功：任务A\n");
}

void task2()
{
    printf("执行成功：任务B\n");
}

void task3()
{
    printf("执行成功：任务C\n");
}

void task4()
{
    printf("执行成功：任务D\n");
}

void LoadTask(std::vector<task_t> *tasks)
{
    tasks->push_back(task1);
    tasks->push_back(task2);
    tasks->push_back(task3);
    tasks->push_back(task4);
}